package com.atguigu.service_edu.service;

import com.atguigu.service_edu.entity.EduCourse;
import com.atguigu.service_edu.entity.frontvo.CourseFrontVo;
import com.atguigu.service_edu.entity.frontvo.CourseWebVo;
import com.atguigu.service_edu.entity.vo.CourseInfoVo;
import com.atguigu.service_edu.entity.vo.EduCourseQuery;
import com.atguigu.service_edu.entity.vo.EduPublishVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author clark
 * @since 2020-04-10
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String id);

    EduPublishVo getPublishInfo(String id);

    void pageQuery(Page<EduCourse> pageParam, EduCourseQuery educCourseQuery);

    void removeCourse(String courseId);

    List<EduCourse> listLimit8();

    Map<String, Object> getCourseFrontList(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseInfo(String courseId);
}
